import { Schema, Types, model } from 'mongoose'
// gpt用户
const GptUserSchema = new Schema(
  {
    avatar: {
      type: String
    },
    name: {
      type: String
    },
    phone: { type: String },
    email: {
      type: String
    },
    password: {
      type: String
    },
    last_dialog_id: {
      type: Types.ObjectId,
      ref: 'GptTopic'
    }
  },
  { versionKey: false, timestamps: true }
)

export default model('GptUser', GptUserSchema, 'gpt_users')
